package com.zheng.hr.rpc.api;

import com.alibaba.fastjson.JSONArray;
import com.zheng.hr.dao.model.HrPosition;
import com.zheng.common.base.BaseService;
import com.zheng.oa.common.exception.OaException;

import java.util.List;

/**
 * <p>
 * hr_position 岗位表 服务类
 * </p>
 *
 * @author likun
 * @since 2018-01-08
 */
public interface HrPositionService extends BaseService<HrPosition> {
    //批量删除
    boolean deletePositionByIds(String ids) throws OaException;

    boolean insertPosition(HrPosition position) throws OaException;

    JSONArray getAllPositionAndUserTree( Boolean isUser,String username);

}
